package com.jxc.model.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/***********************************************************************
 * Module:  GoodsType.java
 * Author:  Tino
 * Purpose: Defines the Class GoodsType
 ***********************************************************************/

/**
 * 商品类别
 * 
 * @pdOid 049425b4-ef02-41d1-98d8-f509e53623e8
 */
@Entity
@Table(name = "SPGL_GOODS_TYPE")
public class GoodsType extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -962268117628721374L;
	/**
	 * 类别名称
	 * 
	 * @pdOid efb1da77-9a2e-4528-af4f-63b79b8190e4
	 */
	private String name;
	/**
	 * 仓库
	 * 
	 */
	private Repertory repertory;
	/**
	 * 是否删除
	 * 
	 */
	private Boolean isDelete;
	/**
	 * 备注
	 * 
	 */
	private String remark;
	
	

	public GoodsType() {
		super();
	}

	public GoodsType(Long id) {
		super(id);
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "REPERTORY_ID")
	public Repertory getRepertory() {
		return repertory;
	}

	public void setRepertory(Repertory repertory) {
		this.repertory = repertory;
	}

	@Column(name = "IS_DELETE")
	public Boolean getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}